This is the correct way to do it.